//
//  JBNavigationController.m
//  OCsinaBlog
//
//  Created by jobo on 16/4/25.
//  Copyright © 2016年 jobo. All rights reserved.
//

#import "JBNavigationController.h"

@interface JBNavigationController ()

@end

@implementation JBNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //设置导航条背景;
    UINavigationBar *bar = [UINavigationBar appearance] ;
    [bar setBackgroundImage:[UIImage imageNamed:@"navigationbar_background_os7"] forBarMetrics:UIBarMetricsCompact];
    
    
    //设置tabBarItem选中时候的文本颜色
    [self.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor orangeColor],NSForegroundColorAttributeName, nil] forState:UIControlStateSelected];
    
    //设置导航条的颜色
    self.navigationBar.backgroundColor = [UIColor whiteColor];
    UIView *view  =  [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 20)];
    view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview: view];
   
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
